package com.fingard.dsp.bank.reqrespobj.qryunduebillinfo;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.xml.XmlTextWriter;

/**
 * @author marlon
 * @date 2019/1/16
 */
public class RetAtsUndueBillInfo extends RetAtsBase {

    public RetAtsUndueBillInfo(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();
    }

    public void writeRetDetail(RetAtsUndueBillInfoDetail p_retDetail) throws Exception {

        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("DealerCode", p_retDetail.DealerCode);
        retXmlWriter.writeElementString("BillNo", p_retDetail.BillNo);
        retXmlWriter.writeElementString("BillMoney", p_retDetail.BillMoney);
        retXmlWriter.writeElementString("BillStartDate", p_retDetail.BillStartDate);
        retXmlWriter.writeElementString("BillEndDate", p_retDetail.BillEndDate);
        retXmlWriter.writeElementString("BailMoney", p_retDetail.BailMoney);
        retXmlWriter.writeElementString("RepaymentMoney", p_retDetail.RepaymentMoney);
        retXmlWriter.writeElementString("BailAndRepaymentMoney", p_retDetail.BailAndRepaymentMoney);
        retXmlWriter.writeElementString("Reserve1", p_retDetail.Reserve1);
        retXmlWriter.writeElementString("Reserve2", p_retDetail.Reserve2);
        retXmlWriter.writeElementString("Reserve3", p_retDetail.Reserve3);
        retXmlWriter.writeElementString("Reserve4", p_retDetail.Reserve4);
        retXmlWriter.writeElementString("Reserve5", p_retDetail.Reserve5);
        retXmlWriter.writeEndElement();
    }

}
